home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / shells / scsh-0.4 / scsh-0 / scsh-0.4.2 / sysdep.h.in < prev    next >
Text File  |  1995-11-01  |  4KB  |  130 lines

  1. /* sysdep.h.in for Scheme 48.  Originally generated automatically from
  2.    configure.in by autoheader, but then modified manually to add
  3.    NLIST_HAS_N_NAME, etc.  The "configure" script creates sysdep.h
  4.    from this file.  If "configure" doesn't work for you, copy this
  5.    file to sysdep.h and make any appriopriate modifications.  If
  6.    you're not sure what modifications would be appriopriate, it is
  7.    generally safe to leave things as they are. */
  8.  
  9.  
  10. /* Define const to empty if the ANSI C "const" keyword doesn't work.  */
  11. #undef const
  12.  
  13. /* Define this appropriately as the return value of a signal handler on
  14.    your system. */
  15. #undef RETSIGTYPE
  16.  
  17. /* Define FILE_HAS__CNT if streams, as defined in <stdio.h>, have _cnt
  18.    components.  This is widespread but basically highly unportable.
  19.    It is used in order to implement CHAR-READY?. */
  20. #undef FILE_HAS__CNT
  21.  
  22. /* Define HAVE_SELECT if the BSD-derived select() call is available.
  23.    select() is used in order to implement CHAR-READY?. */
  24. #undef HAVE_SELECT
  25.  
  26. /* Define HAVE_SETITIMER if the BSD-derived setitimer() call is
  27.    available.  In the absence of setitimer(), alarm() will be used.*/
  28. #undef HAVE_SETITIMER
  29.  
  30. /* Define HAVE_GETTIMEOFDAY if you have gettimeofday().  This is a BSD
  31.    thing that returns elapsed time to the nearest microsecond (yeah,
  32.    right).  In the absence of gettimeofday(), ftime() or time() will
  33.    be used. */
  34. #undef HAVE_GETTIMEOFDAY
  35.  
  36. /* Define if you have ftime() and its associated header file sys/timeb.h.
  37.    This is an ancient Unix version 7 thing, but if gettimeofday()
  38.    isn't available then it may be the only way to get sub-second
  39.    resolution for elapsed time. */
  40. #undef HAVE_FTIME
  41. #undef HAVE_SYS_TIMEB_H
  42.  
  43. /* Define if you have the nlist() function.  This is a
  44.    not-very-portable way of looking up external symbols. */
  45. #undef HAVE_NLIST
  46.  
  47. /* Define if struct nlist, defined in <nlist.h>, has an n_name component.
  48.    If it doesn't then we expect it to have an n_un component. */
  49. #undef NLIST_HAS_N_NAME
  50.  
  51. /* Define if you have ANSI strerror. */
  52. #undef HAVE_STRERROR
  53.  
  54. /* Define if you have dlopen() and related routines (dynamic linking
  55.    of shared object files). */
  56. #undef HAVE_DLOPEN
  57.  
  58. /* Define if you have header file libgen.h.  This has something to do
  59.    with locating shared object files. */
  60. #undef HAVE_LIBGEN_H
  61.  
  62. /* Define if you have the chroot() system call (quite inessential!). */
  63. #undef HAVE_CHROOT
  64.  
  65. /* Define if you have the Posix sigaction() call. */
  66. #undef HAVE_SIGACTION
  67.  
  68. /* Define if you have socket() and related functions. */
  69. #undef HAVE_SOCKET
  70.  
  71. /* Define if Posix "time.h" include file is <posix/time.h> instead of
  72.    the standard <time.h>.  (MIPS RISC/OS) */
  73. #undef POSIX_TIME_H
  74.  
  75. /* Define this if /bin/ld exists and accepts a BSD-style -A argument
  76.    (for dynamic loading of .o files). */
  77. #undef ANCIENT_DYNLOAD
  78.  
  79. /* Define if fd_set and friends need sys/select.h */
  80. #undef HAVE_SYS_SELECT_H
  81.  
  82. #if !defined(HAVE_SIGACTION)
  83. struct sigaction {
  84.   void (*sa_handler)();
  85.   int sa_mask;
  86.   int sa_flags;
  87. };
  88.  
  89. /* for HPUX with CC */
  90. #undef _HPUX_SOURCE
  91.  
  92. /* for HPUX with CC */
  93. #undef hpux
  94.  
  95. #define sigaction(sig, act, oact) signal((sig), (act)->sa_handler)
  96. #define sigemptyset(foo) 0
  97. #endif
  98.  
  99. /* Under HPUX, select() is declared
  100.       extern int select(size_t, int *, int *, int *, const struct timeval *);
  101.    in sys/time.h.  This is brain-dead, since the FD_SET, FD_CLR, and FD_ZERO
  102.    macros defined in HPUX's sys/types.h assume fd sets are a struct type, 
  103.    and therefore blow up if given int *'s. So the four procedures that
  104.    hack fd_set's are not even type-consistent, even under C's lame rules. 
  105.    Give me a break. 
  106.        -Olin
  107. */
  108.  
  109. #if defined(hpux)
  110. # define select1(nfds, r, w, x, t) select(nfds, (int*)r, (int*)w, (int*)x, t)
  111. #else
  112. # define select1 select
  113. #endif
  114.  
  115.  
  116. /* Define USCORE if your c externals are prepended with an underscore */
  117. #undef USCORE
  118.  
  119. /* Define if you have POSIX tzname (Losing sunos4...). */
  120. #undef HAVE_TZNAME
  121.  
  122. /* Define if your tm struct in <time.h> has a tm_gmtoff field. */
  123. #undef HAVE_GMTOFF
  124.  
  125. /* Define if your sys_errlist is a const definition */
  126. #undef HAVE_CONST_SYS_ERRLIST
  127.  
  128. /* Include info we know about the system from config.scsh */
  129. #include "scsh/machine/sysdep.h"
  130.